package com.hb.trade.api.routine.config.pay;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @Description:订单数据配置
 **/
@Configuration
public class OrderDataConfig {
     //只能匹配 数字  字去母 下划线
    public final static String  orderHeaderReg = "^[0-9a-zA-Z_]{1,}$";

    /**
     * 支付宝/微信订单头
     */
    public static String orderHeader;

    @Value("${order.header}")
    public  void setOrderHeader(String orderHeader) {
        OrderDataConfig.orderHeader = orderHeader;
    }
}
